package router

import (
	"github.com/gin-gonic/gin"
	"shop-sys/controller"
)

func PrivateSysXhr(router *gin.RouterGroup) {
	api := &controller.RequestController{}
	sysXhrRouter := router.Group("/sys/xhr")
	{
		sysXhrRouter.GET("/list", api.List)           // 获取请求页面
		sysXhrRouter.GET("/page", api.Page)           // 请求列表
		sysXhrRouter.PUT("/status", api.UpdateStatus) //修改状态
		sysXhrRouter.POST("", api.Save)
		sysXhrRouter.PUT("", api.Update)
		sysXhrRouter.DELETE("/:id", api.Delete)
	}
}
